﻿
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="admin/js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var g_langID = window.opener.g_langID;
       
        var hash = document.location.hash.substring(1);  //解析hash得到access_token值。
        //var hash = "access_token=2.00n4sUwCH6xp9B2c5c0760600_EsZF&expires_in=86400&remind_in=57965&uid=2696652043";
         var url = "/sniaM.aspx?" + hash + "&langid=" + g_langID;


         $.post(url,
                { 3: "1" },
                function (data) {
                    if (data == "1") {
                        document.write("非内部测试账号");
                    } else {
                        var ustr = (data == "2") ? "myaccount.html" : "home.html";
                        ustr = (g_langID == 1033) ? "/en/" + ustr : "/cn/" + ustr;
                        window.opener.location = ustr;
                        window.close();
                    }
                }
              );
    </script>
</head>
<body>
    <form id="form1" runat="server">
     
    </form>
</body>
</html>
